fixed NPE in changeOwner command (fixes #496)