handle both null/undefined for bad expression