One of the doctors caught up in the criminal fallout surrounding Matthew Perry's ketamine death has narrowly avoided prison time.