Fixed a bug that occured when setting the root password registering the hosts in foreman