Finite element approximation for the heat transfer in incompressible Oldroyd-B flows