Issues with host clone

Recently have upgraded foreman from 1.3 to 1.5. Since then am having issues
with clone the host entry functionality.
Here is the error am facing:

wrong number of arguments(1 for 0)
app/models/host/managed.rb:629:in dup' app/models/host/managed.rb:629:inclone'
app/controllers/hosts_controller.rb:78:in clone' app/models/concerns/foreman/thread_session.rb:33:inclear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

All the other functionality is working good.

Any input/suggestions are helpful. Thanks in advance.