Fixed bug where options dialog would not shown for layers without a palette