Agent.Task.getResourceData incorrectly throws MissingResourceException for empty resource files:
if (size == 0)
throw new MissingResourceException(resourceName, null, resourceName);
This code should be removed.
if (size == 0)
throw new MissingResourceException(resourceName, null, resourceName);
This code should be removed.