Put the Exception stacktrace in ProblemResponse::detail when in debug mode

Debugging with behat can quite painful when we don't have the stacktraces of thrown exceptions.