Add error handling to boolean and URL transformers