Patient without photo, now can be registered.(error fixed)