Fixed crash when copying multi-line selection that overflows the project's height
