Handle null location (See #10711)

To test:
* Open an image.
* click on the color picker icon above the channel.
* The color menu should pop up.

see https://trac.openmicroscopy.org.uk/ome/ticket/10711