only render html row if alert or notice exists