I have reset /var/dnf/system-upgrade/expired-repos.js to  and simultaneously tried this new version of DNF. With that I was able to perform the offline upgrade from f26 to f27.
I replaced the version from my Open Build Service with this one and it works just as well as before.
I just tried it out and it fixes the bug for me.
Copyright © 2007-2019 Red Hat, Inc. and
bodhi is Free Software.
if you have any problems. Read the documentation.