Foreman compatibility with 1.4+

Just a fix for this - https://github.com/cernops/puppetdb_foreman/issues/4 

Is there a possibility I could be given write access to this repo in particular? @traylenator, @gmccance?