Allow this plugin to work with Foreman 1.3.

once https://github.com/theforeman/foreman/pull/929 is merged, we can revert this patch.