Remove undef error when nested key not found