Prevent errors if no view present.

Skip updating the status bar if no view (i.e. tab) is open. The status
bar is view specific, so no view means there's no status bar to update.

Also, clean up debugging messages and neatly format the list of
installed packages.