Only render sandbox config if  the sandbox is enabled

Currently all sandbox-related stuff is rendered conditionally in method.html.twig, but not in layout.html.twig. In the latter the request format and body format can still be selected even though the sandbox is disabled.

This commit remedies that and does not render the sandbox config div is the sandbox is disabled.