Improve compatibility with some pools with which do not fully respect
the stratum protocol.