Fix error caused by null file object while patching latest League version