LPS-43337 We can safely remove this code because node cannot be null and we are already calling ActionUtil.getFirstVisibleNode in ActionUtil.getNode
LPS-43337 getFirstVisibleNode should only obtain the node and don't set any attribute in the request. We can extract that logic and paste it where the function is called.
LPS-43337 Unify both methods in a single one. More consistent with getNode method.
LPS-43337 Create getFirstVisiblePage method so it can be reused
LPS-43337 Make sure that when viewing the nodes the frontpage exists and otherwise create it