Update Compiler.php

If the EntryEntity is not valid, the Compiler will throw an exception and will get the errors from the validator.