Fix undefined errors ocurring on sites with manual plan overrides