Fix parsing of first selector in embedded style block

This is for problem captured by unit tests added in pull request #6666