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

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