Fixed #371: don't retain header when no result is returned