A few small code tweaks and fixes.

Fixes an issues where double clicking the local packages datatable
without selected a package would cause a crash.
Initialize log service.