fixed bug with windows creation, when there are no any components registered