McDonald's narrowly beat on earnings per share for the first quarter, but fell short on revenue.