Tribunal told to think again after allowing doctor who wrote prescriptions without seeing patients to continue practising