Added error reporting to getUserMedia.