Checking the correct return values from getAttribLocation.