utils.IsValidUUIDString fix

Fixed code that depended on a bug in utils.IsValidUUIDString

(Review request: http://reviews.vapour.ws/r/571/)