Fix exception on invalid OAuth headers