Fix bug in errors module when error index out-of-range, fixes #16
because the seg fault occured due to an out-of-range -1001 error
thrown by the Linux OpenCL ICD loader.