The reasoning behind this if statement is to not trace on expected errors (not pollute traces).