Fixed crash on tapping on the last line.

Related to
https://github.com/carezone/Kal/commit/0f271210b09525c696ea080837528ef52d95e2de