MDL-69319 mod_lti: replace try/catch with expectException in ext tests