last fixes

a. fixed handle keys have on device / nfc while restoring from backup
b. fixed a bug in gmail causing crashes while trying to open attachment
c. fixed time issue in replay attack
d. prevent a crash in rare cases while trying to restore activity from
bundle and there is no constructor