WL-2499 added null check to avoid NPE when providing no roles. No longer incorrectly assigns roles just because they are inherited.