Fixed: AttributeError when params is None.