LPS-48201 Look and Feel changes in a portlet are not persisting after page refresh if "Show Portlet Borders by Default" is not selected
LPS-48229 Unnecessary code since fields have autofocus
LPS-48229 Check we have a valid node
LPS-48229 Move the check for element existence in Util.inBroserView function.

The element cannot be in browser view if it doesn't exist at all.