This is nil for me sometimes, and causes a crash
Merge pull request #151 from marcusramberg/fix_crash

This is nil for me sometimes, and causes a crash.