change ast_strlen_zero to also check for the string to be defined