gui: Don't crash when double-clicking on non-image rows of Surface tab.

Fixes issue #260.