Allow null to be passed to setOriginalRoles, and if originalRoles is empty, cast it as an empty array.