Fix possible errors with some password protected files

Taken from [this file-roller commit](https://git.gnome.org/browse/file-roller/commit/?id=15c65e770ae3e9c5cd005a506eb30c6dff5de7e6), slightly adapted for Engrampa.