Added fixes for possible nil pointer dereference and an unhandled/unlogged error
Added fixes for possible nil pointer dereference and an unhandled/unlogged error

dweidenfeld/plexdrive,dweidenfeld/plexdrive