We may or may not have the 'val' string filled, and possibly outputting an empty string seems misleading to the user.

I however had another idea on how to handle 'cmd_getval()' (in the context of issue 6780) and may end up grabbing said error from whatever 'cmd_getval()' gives as an error.