[Parser] Fixed CUDA predefined variables (had bugs with error checking)