fix exception if response is not successful

please move the merge inside of ````get_resource````. It should be
````
      def get_resource(path, attrs)
        response = get(path)
        if response.success?
          response.merge(attrs)
        else
          {}
        end
      end
````

This will ensure that when the response isn't successful, it'll always return an empty hash.