Despite of the previously introduced sanitizing it still sometimes happens that an end frame variable is not greater than the corresponding start frame variable. Make sure we don't crash by adding more sanity checks in getSampleFragment(). Closes #629.