Avoid internal error while quering plugin

* return None instead of NoneType error doesn't containt some property

Change-Id: Ibb5050f035a328e3dc7f9b69e20668ae0a686636
Merge "Avoid internal error while quering plugin"