Fix for plugin changes in recent versions of foreman.

Tested with 1.6.1