Handle target blocks gracefully.

Sometimes, player.getTargetBlock() returns an IllegalStateException.
This is usually the case if players stand at height 127 and look up when left-clicking.
The exception can be safely caught and treated as an invalid block (air in this case).