Fixed error "ymaps is undefined", when use directive "yaTemplateLayout" before map init.