Fix patient dashboard for deleted patients - #569
quick fix