fixed bug where hitting the arrow key to go to next/prev  patient when there is not next/prev patient would still try to take you to the non-existent next/prev patient