Make KoDerivedResourceConverter::writeToSource safe for nullptr value as changed param
Only the first if was checking if changed is non-null, the code below dereferenced it unconditionally.
This wasn't a problem since the function was only called from one place,
but rather make it safe.