sdk: menu: fix opts variable usage

(integrated from master branch change 2119338 by Todd Whiteman <toddw@activestate.com>)