Catch IllegalArgumentException when block data is invalid

Fixes
http://www.spigotmc.org/threads/terraincontrol.37980/page-2#post-461778

Also updated Forge material parser to follow identical logic to the
Bukkit material parser.