Don't throw a error when writing JSON fails
Merge remote-tracking branch 'minetest/master'