Use `Promise.guard` from `prfun`.

Change-Id: I4360aad9c4b23285e3a3e7f6328b8b48b87ee9d8