fixed null pointer exception

when calling advanced search from otherclient a null pointer exception
would be thrown when double clicking a table row to edit a package.
fixed it so that only the main client can edit the package data