Fix for selecting a null llinked patient Trello 174