Fixed an error happening when the memory stats are not available (None instead of an integer)