Added null check to MenuLookup. Fixes #565.