[components] Some view implementations returned Element instead of string, added defensive declarations to Controller's buildDOM method when building its DOM.