fixed render when resizing

Fixed rendering rescaling the window when theme name or style name were nil.