bugs fixed: warning menu without '#children' element

Signed-off-by: songyang <waoywssy@gmail.com>