Specfile:write_updated_patches(): handle unapplied patches.

similar to eeb354b2845