Sometimes subprogram page is null and leads to NPE when searching. The fix done ODF-2435 should be applied to the old search engine too.
ODF-2435 Error on search service when a page does not exist