Only set the value when a parameter was given.