fix message on check_correctness.sh
adding emf fill with corrupted header
cleaner way to handle wrong ObjetTable indexes

Now emf2svg stops if a wrong index is detected and indexes checks
are more consistent with memory checks.
return on error, and better exit behaviour

* adding return on EMF_HEADER errors
* cleaner way to return (systematically returns after freeing all
the resources)