catch for null values in find_variable