If format is passed as None to get_config api, wrong command is genereted ie. `show running-configuration | None | section interface`. Add format type in command only if format value is either not `text` or `None`.