Add check for existence of button

This should probably be moved out of the main LensToy code at some
point.