Resets viewLocal when the view has no locals assigned to the current state. Contributed by chinchang.