Fix for keywords editor throwing error when raster layers are used.