The commit you reverted introduced a regression, fixed in a follow up commit done after release of 5.3.7: 5ffe28d4b83b1a75b1706bd851b76575b3d09c45
If use use debian/ubuntu packages from deb.kamailio.org, then you should use the nightly builds for branch 5.3.
If you use sources, just install from latest branch 5.3.
Closing this one, being fixed in the branch -- if doesn't work for you, reopen.