Fixed typo in plugin detection
Added error message when there is no data