fix using result of void function in opToolkit::writeCacheFile() (fixes #3709, BP from #3302)

bug ticket http://redmine.openpne.jp/issues/3302
BP ticket http://redmine.openpne.jp/issues/3709