Fix for T100879
Exact description of the bug is in the bug task.
But the TLDR is: The "Bake Action" operator when baking to "Pose" was looking for selected objects even when "Only Selected Bones" was enabled.
Because an armature is not necesarily selected when a bone is selected (e.g. box select) it could fail with "Nothing to Bake" even though bones are selected.
While this patch fixes the issue. I am wondering if it should be a bigger refactor. The "Bake Action" operator seems to do too many things, working in the NLA and the Pose Mode
The second issue is that box select does not select the armature, while click select does. @Sybren A. Stüvel (sybren) I am wondering if that is something we should change as well