Andy Murray snapped a six-match losing streak as he beat Alexandre Muller 6-1 7-6 (5) in the first round of the Qatar Open.