strongloop/loopback — pull request #680 by arlaneenalra (2014-10-22 15:07:12+00:00)
Title: Force principalId to be a string in Role.getRoles Fix #676

Added a defensive check for undefined to avoid problems
when converting to a string.