Remove unused parameter in add_context() method.
Add filtering invalid object in export() method.