Avoid null reference exception on data upload

occurs if tags is left blank in form.