Don't put attributes to tags if there is nothing to put