Fix #300 by checking if the activity is in FG before displaying the alert about Jetpack needed.

Not sure if this is the best implementation, but for sure it also fixes an issue where the alert about JP was shown 2/3 times, when you left the app quickly.