Fix checkError() function

Solves https://github.com/jteeuwen/go-vlc/issues/10