Don't use extension to test for quality tags. fix #3457