Add error catching to the promise chain. Catches some problems with the Forms library.