Fixed the push id being set to null after the app is set to the
foreground.