Merge pull request #1 from nobelium/checking

Explicitly checked for 'undefined'
Merge branch 'master' of github.com:nobelium/cesium into checking