Add error reporting for some SDL/tiles related functions.

Make sure that a critical error does not lead to a crash, but a graceful exit.
Also disables the tileset (cata_tiles) if loading the tileset failes.
Fixed format string bug in crafting menu.
Merge string handling and error checking fixes.