Removed IRI.toString() call when checking blank nodes.

Profiling says that was taking up to 15% of parsing time.
Check can be done without turning the IRI in a string.