Fix oauth error handling

Adaptation regarding sensiolabs/connect#47