bugfix: TDIS-5516
sync doesn't work if errorCallback is missing.