fixed bug where isGUID was not checking for undefined