Assert when moz_malloc_size_of returns 0 when reporting JS memory usage.
Return zero from partitonAllocGetSize for nullptr.
Use partitionAllocGetSize for measuring JS memory usage.