IDEX-1512 instantiate extension in try-catch block