Fix for issue https://github.com/PerlDancer/Dancer2/issues/393