Fixed proxy registration for foreman_api 0.1.18+

This fixes 95145fca4cc2afcdedff0cf6cb3dc64122bf3420