Move method call to resource.load_prior_resource to fix CHEF-5052 resource merge issues

This PR moves the method call to resource.load_prior_resource to *before* the method calls to cookbook_name and recipe_name to restore the duplicate resource merging behaviour that was present in Chef 11.8.2