This is fixed in version 1.0.42-2, and not present in version 1.0.42-1, which seems to be latest in stretch (both with tests).
At patches dir:
- this disables perlbrew usage (this was temporary, it would be wiser to replace this patch with the one which removes if-then-statement completely, because this "temporary" fix just confuses and intricates code logic in long-term perspective),
Other patches fix error or warning messages, which appeared in almost all rostlab packages and were not as tricky as this one.
P.S. - I could work on fixing this bug late at the evening or tomorrow, because at this moment I have no Debian distribution or VM somewhere nearby, and I could check that everything works after I come home. In case if Liubov has time for solving this before that and she is not working on something else I've added her to CC.