Can't select an atom node in Chrome if it's the last in a line

According to the issue #1152, upgrading prosemirror-view to 1.19.2 and above could solve the problem.

But my project is not ready to upgrade to new version due to some unpredictable issues by upgrading. Do I have some work around to solve this issue by writing maybe a plugin to add the empty img hack node?

Any suggestion would be helpful.

Go to https://unequaled-truthful-condition.glitch.me/, and try to select from the right to left in the second line, or from left to right. The atom node won’t be selected. Code is available at Glitch :・゚✧