Add missing wfProfileOut before throwing an exception

Change-Id: I1d830da0597f19efd0b2ae48642389975e736e23