Debug toolbar unusable with Sonata

This PR aims at fixing the following issue #31