Check LIMIT_SAMPLES and SAMPLERATE are available to read before reading them

This fixes bug #487
TimeMarker: Fixed display of negative value in popup

This fixes bug #460
DecodeTrace: Don't attempt to hover if the trace hasn't been painted yet