Attosecond photoionization of a coherent superposition of bound and dissociative molecular states: effect of nuclear motion