Implemented tangential fixes from #10: correctly identify button even when disabled, and do not bother with no-op click handler.
[JENKINS-20647] seems to have been fixed (accidentally?) by 07978d5.