Bug 1091091: Support ErrorResult in Promise::MaybeReject(). r=bz
Use ErrorResult in Cache TypeUtils module.