Fix error when engine is not defined in g:im_default_methods