Make sure some actions are disabled when there is no image
Interestingly, the show global selection mask action cannot be propertized...