Added return when position_ == endPosition
May resolve bug-report http://www.openfoam.org/mantisbt/view.php?id=1459