Fixed the bug that restApi client throws an error when the value of expanded field does not exist