Put in work-around for crash due to edGetSelection being called with a massive value for offset.  Not sure what the root cause is at the moment, it needs more investigation.

git-svn-id: https://staden.svn.sourceforge.net/svnroot/staden/staden/trunk@3135 ba6f2710-ca9f-427c-89d3-5bf716dbc8e1