[Core] Skip blank username/password when saving credentials