We try to selecting certain components for MSM rollout, and face the same issue, not be able to select a component since the checkbox on the component edit bar doesn't work properly. I have tested your code, it works fine. Just wonder if Adobe released a hot fix for this issue?