Fix Component::setParser method signature to allow null value