Fix NPE if html file without a project is edited
WCMIO-19: fixed detection of commands over multiple lines.