The hyperluminous infrared quasar 3C 318 and its implications for interpreting submm detections of high-redshift radio galaxies