Fixed issue #2024: Unnamed "remote" should not be created

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Do not reset changed state if save config failed

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>