stream should be checked for failing state before passing
it into the loading function of a DAWG object