Don't save push settings if settings are nil

Fixes #1153 

There is probably a bigger underlying issue with push settings being nil (lost credentials) but this method should be a bit more robust.