Is the core mass-luminosity relation violated by the occurrence of the third dredge-up?