Fix NPE due to plex servers with out any libraries.

When there are no libraries defined there are no directory entries returned
as part of the XML.  This leaves the Directories entries as NULL.  Which
was not being handled correctly.
Add google analytics tracking information to enhance Bugsense tracking.