bugfix: PatientDetailView Scan Button NullPointer exception when TreeItems are expanded