HUE-1869 [dbquery] Query with error should not move headers