curses: Check if value is provided for ngraph

Fixes: CID 49001
Signed-off-by: Thomas Graf <tgraf@suug.ch>