Fix #1302. 

Fix issue that fails for get names on incorrect formats. Ex: J.Everybody
Merge pull request #1310 from eleazan/patch-2

Fix #1302.

Reviewed-By: Peter Rotich <peter@osticket.com>