if obj in None, get_obj_perm should return '' and not raise an error