Added the hasErrors filter constant.