UC-640 - config should clear registered modes cache when location is deleted