Fixes #1528: $current_screen is NULL in the case of quick edit, so make sure $current_screen is an object before trying to access any properties.