Fix possible error if bash is run with -u

Signed-off-by: Anton Kolesov <anton.kolesov@synopsys.com>