Fix #793 Unhandled exception for layers with no keywords when keyword dialog opened