Only display admin page when WP_DEBUG is set

By using the 'action_scheduler_post_type_args' filter.
Clean up code