Fixed crash on state restore.

This was due to the context being held getting nullified after the application has been killed.
The context was not actually needed to be stored.
This is also the correct fix for an issue reported through the Play store.