Avoid error in recovery test if history file is not yet present
Error was detected when testing use of libpq sessions instead of psql
for polling queries.
Discussion: https://postgr.es/m/
e86b6d2d-20d8-4ac9-9a98-
165fff7db886@dunslane.net
Backpatch to all live branches