Check WP_DEBUG before removing wp_generator.