I pushed a fix and added a test. Note: the test doesn't actually test that particular bug, because we don't actually guarantee the order in which errors are returned.