improving maven repo index handler to try to avoid NPEs and various threading collision issues.