PR25244, --print-memory-usage, division by zero if MEMORY length is zero