@tomst Have you also called HasValue() before getting PhoneHandler? Also phoneHandler->IsObject()? If it's not an object I don't think you can call HasValue/GetValue.
Thanks Czarek, both global->HasValue("PhoneHandler") and handler->IsObject() are both returning false indeed, so looks like it's necessary to check these.