Nil safety check to prevent crash due to a thrown exception.
Updated podspec.
Merge pull request #36 from wdn/master

Nil safety check to prevent crash due to a thrown exception.