The aircraft reported an increase in quarterly profits despite fire woes on several of its 787 Dreamliners.