added bugfix to input text when working with new element in datasource.... attibutes might be null then,,,