If the viewlayer active object was set to None, editmode toggle poll would still be permissive (it checked `CTX_data_active_object`, exec was checking `BKE_view_layer_active_object_get`...) These two need to be in sync. For this PR, just go with `BKE_view_layer_active_object_get`... NOTE: other mode switching operators seem to have the same "problem". Pull Request: https://projects.blender.org/blender/blender/pulls/138083