Fix mark_safe ImportError under 1.4