Allow null to be passed to setOriginalRoles, and if originalRoles is empty, cast it as an empty array.
Merge pull request #351 from SonyATV/sonyatv-master

Fix error new group originalRoles null condition (original pull request #301)
Merge branch 'sonata-project/master'