Add missing parameter in handleWriteError call

Change-Id: If3ebf6f77d66121bac8e11d43582f1dbb3e88e12