fix up base in case data index is empty

prevent fatal property not exist errors
adds basic warnings about things missing
remove hook debug line / file from $plugins

This only exists for debugging as far as i can tell.
Also removed check for plugin match and  live plugins check, unecessary
to check a plugin is active that called add-action cause only active
plugins are loaded.