The Serbian's 361-week run as world number one was ended by Jiri Vesely at the Dubai Tennis Championships.