This is a very old thread, but the fact that I found this in 2023 means that maybe someone else will also find it now. So, the way to do this on field calculator is:
def rmnull(x):
if x is None:
return 0
else:
return x
Hopefully, this helps someone else 🙂