Fix multifile clause compilation bug where the entity for which the clause is defined would not be available when querying the execution context of the clause head at runtime