Bugfix for https://bugs.kde.org/show_bug.cgi?id=394842.
Prior to this patch, "Remove Frames and Pull" would fail to remove the final frame of a given selection if the next frame was empty. This patch should fix that!
(Also, credit to Eoin for helping me nail it down! Thanks!)