Fix Component::setParser method signature to allow null value

Allow case when the parser is not set yet.