Fix a bug where pending deferreds were not rejected after Photoshop errors