core/ocl: change error processing for missed function
Merge pull request #2341 from alalek:ocl_fix_error_processing