Conformal Anomaly and Off-Shell Extensions of Gravity