Added some null- and size-checks in AnalysisHandler to avoid
nullpointers and array-out-of-bounds exceptions.
Adjusted packetsize sent to analyzer and treshold for frequency
detection.