'options' is null or not an object.
The reason this happens for me is because in my configuration file I am setting the scope dropdown mode to Show, do not include contextual scopes and I have specified a ScopeDisplayGroupName that does not exist yet in my site collection. Actually any setting for the scope dropdown that displays a dropdown will cause this behavior when the scope display group does not exist. To fix it quickly, you can either change the scope dropdown mode or create the scope display group on your site collection. However, the correct way for me to fix this would be to include something in my feature receiver that creates the scope display group.