amrwb: error out early if mode is invalid.