Fixed NPE in StyleRest for sld editor.