It is a check that if there is an error it calls the error callback: see line 218 so I don't think it would be related