ToggleShapesTaskFactory throws NPE with no network