add - Now plugin can be used for commenting without changing workflow

I only change error notify to warn when use empty workflow and fix NPE in this situation + add some tests to work with workflow