Ensure we check for null when freeing from the memory pool