Second theory
Something disastrous happened in the cockpit.
The plane was being diverted by the pilots after it happened.
The pilots were overwhelmed by fumes/smoke.
The plane kept on flying on autopilot on a course from malaysia straight to the maldives until it ran out of fuel.