8177691: Labeled break in catch and finally works wrongly, when invoked through nashorn
Summary: Added support to check if the block contains goto statements before flagging it as terminal
Reviewed-by: hannesw, jlaskey
Contributed-by: srinivas.dama@oracle.com