Add check when there is no #pma_navigation_tree_content

Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>