Dollar holds near 104.50 as Middle East tensions lift haven demand