Added a null check for the first fields object and cancel the update call if the fields object is empty.