Fix option rendering when template starts with a new line

If option's template has a new line before root tag, dropdown is not working.