Fix determine if comment is null in angular controller