Fix formspec replacement handling for in game formspecs