Fixed when parseIdentity receive string
Merge pull request #420 from freezy-sk/bugfix/parseIdentity

Fixed bug when parseIdentity was returning null instead of string when received string