Bug: ge and gE should stop at empty lines.

This fixes the issue and the failing unit tests.
Tried in Windows and Unix line ending modes.