Fixed sending API requests with field expansion without 'data' set.

The new expandedFields was trying to set data.expand, but if data wasn't
set, this would fail. We now ensure that data is always set to something
by this point.