Added fix for incorrect detection of throw as function definition

I came across problems using highlight.js on java code, which are corrected with this small patch.