Don't crash when using app with device encryption

* This works as one would expect, though instead of disabling the
  PIN/password screen entirely, you just have to press Enter/Done at the
  prompt.
* This also disables the lock even when the lockscreen is being shown,
  to avoid confusion.