Prevent crashing the login page

This fix will check if the user is logged into the backend
before trying to edit the Administration page html.