sw: fix some assertions that still use removed SwDoc methods

Change-Id: Ia33dff51cdb58030ec11ec499ee5c518fba31641