Fix for bug #8297

Fixed getting the policy_list_hash which can fail if elements are null
[SeeRM #89297]