Ideally, we should just return an InvalidParameter dialog here, but that shows error message to the end user, and we generally avoid that