Added missing definition checks
Merge pull request #21 from m10s/nav_type

Calling knp_menu_render without nav_type throws error