Hello,
If you are getting a horizontal line when merging PDF documents the best solution is adding the line you have already added. That line prevents inserting that line; we move the question to the dev team to consider adding the same method to the stable branch.
Regards.