Fix to prevent get_obj_perms templatetag from raising exception when obj=None