Fixed build after refactoring of consent error handling