fixed handling of items without database source
LOCAL_FOLDER itemtype, on_activate handler