Mark failed and applied updates as pending during rollback. Fix pending_...

...from method - in case there is no pending updates available.