[PRX-136][PRX-137] set patient id to <NONE> if not available and check dir before delete