FIX: fix unplugging in htmllib when not plugged