This prevents a fatal error for `get_current_screen()` that a lot of users used to complain about but we couldn't replicate.

This fatal error only happen when `wp_insert_post()` is called on the front-end, so that's why we failed to replicate it reliably.