Issue 1185: Under certain circumstances, trying to create a patient hangs forever
Fixed