Fix a rare NPE crash in Android 2.x
See http://crashes.to/s/5ee30776a5d
Merge pull request #216 from robUx4/npe_android2x

Fix a rare NPE crash in Android 2.x