prevent null exceptions when a trace is not loaded; prevent text input from being interpreted as shortcuts