Mihir | #2313 | fixing console error on dashboard, occurs when patient has no active visits