If we get an AttributeError, when executing yaml.load(), the execution of the plugin fails. This patch fixes this issue. Change-Id: Icc5d46adaf4e63e00e6e346161b7cccf93d2e4dd