Fix null pointer issue when attrs are not supplied to withTag