Passing entity stub object to entity selector widget

- patch set 2: Added some documentation and throw error if incomplete stub object is given
  for entity selector selectedEntity.

Change-Id: I4afd88c8bea4e0a43cda48c2f8e78e52516cac91
Merge "Passing entity stub object to entity selector widget"