Cumberland Infirmary burglar spared prison