fix(plugin:printer): fix isAvailable function + promise for print function