Fixes ClearOnEmpty

Fixes problem in ClearOnEmpty in jQuery Plugin