Fix issue that runtime warnign not cleared

Runtime warning now is not cleared because of some changes in #2729. 

This pull request fixes the issue by clearing warnings before executing a graph node.