$_GET['tab'] is sometimes empty in admin back end

* Added some empty/isset checks and removed the superfluous default setting that was already given by the function argument.
* Some white space tweaks