Plugin: remove unnecessary calls to dl_error