An Islamic centre that was given an official warning for hosting "inflammatory, divisive" sermons by the charities regulator is seeking legal advice.