ensure markdown filter returns none on non-string input