fix(dropdown): add null check for menu