Coherence in the presence of absorption and heating in a molecule interferometer