disable the end date/time when clicking 'undefined' end date

This fixes a regression introduced when I updated the patient builder markup. I've also added DOM testing in addition to the view testing that was already in place.