bugfix: Fixed NPE.

https://www.bugsense.com/dashboard/project/ad73db70#error/94714538
https://www.bugsense.com/dashboard/project/ad73db70#error/94919844