check that get_current_screen() isn't null before using as object. #2419