Fixes a bug in ResourceHandler's loadProgram method where we sometimes
tried to bind to an openGL attribute location that didn't exist...