Handle None return from memory check in tests