Fix error in call to wfRunHooks()

Change-Id: I3e41d712195f530c956f75b8eb0acaf44bff3a73
Follows-up: Id429e0145 (55301f03e3)
Bug: 54628