fix stack level Stack level too deep with class

that extend HashWithIndifferentAccess and overwrite initialize like
the following

   class HashExtWithInitializeTest < ActiveSupport::HashWithIndifferentAccess
      def initialize(hash = {})
        replace hash
      end
   end

> Foo.new
> tack level too deep

Fixes #11087