Work around the limitation that `context.active_pose_bone` is `None` when the active bone is hidden. This also fixes the issue that the bone custom properties panel was using the global context (`bpy.context`) instead of the one passed to the `draw()` and `poll()` functions. Pull Request: https://projects.blender.org/blender/blender/pulls/118510