Handling various cases how files end for parsing text files, such as no
LF, multiple empty lines, etc. Fixes #1696.
Merge branch 'develop' of https://github.com/Caleydo/caleydo.git into develop