Skip scipy for empty traces

Some processing on trace is directly sent to scipy via plugins. This has to be skipped for empty traces otherwise scipy raises cryptically.

Here's a decorator to do this.