fix an issue with no unwrapping optionals

verified the bug on my push-quickstart demo PR [https://github.com/aerogear/aerogear-push-quickstarts/pull/29](https://github.com/aerogear/aerogear-push-quickstarts/pull/29)

this will help fix it.