Fix bug report 24612:
  hermes package has compile error with introduced at r24910.
  Solved by checking that the procdef is not declared forward.


git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@24912 3ad0048d-3df7-0310-abae-a5850022a9f2