Work-around Promise shim bugs.