Optional files cause null point exception

Signed-off-by: nigel <nigel.cook@hp.com>