Don't crash if uiConfig is null
Don't crash if uiConfig is null

I don't know how uiConfig can be null at this point, but sometimes when
resuming the app it is. I haven't been able to reproduce yet. Hopefully
this fixes it.

nathanj/ogsdroid,nathanj/ogsdroid