FieldGroup.commit throws NPE if not bound to an item (#14732).

Added null check and corresponding test.

Change-Id: I197dad14d6b5f7bf9bedcdf083d4b1f0f20efdcd