The effect of emission lines on the performance of photometric redshift estimation algorithms