[BZ-1032064] return null for non-declared EntryPoint in reteoo
(cherry picked from commit 3fe05335c18f476b6e3c071ce06e037430475608)