Bug fix for ToModelIdField serializer.