Mark failed and applied updates as pending during rollback. Fix pending_from method - in case there is no pending updates available.
Merge pull request #180 from bitzesty/rollback_fixes

Mark failed and applied updates as pending during rollback.