fixed typo, added autocreate actionbar element if given element is empty