Fixed a bug which occured when the app was backgrounded while the passcode screen was on display