Issue #1213536 by David_Rothstein, sun, effulgentsia, Yorirou: Fixed Non-resettable theme_get_registry() cache causes problems for non-interactive installations.