Fix translation: ensure that RFile.write() is never called with None