Fix for warning messages logging to the console as 'undefined'
Merge pull request #2 from dgiul/master

Fix for warning messages logging to the console as 'undefined'
Thanks dgiul!