Using a datasource without having it registered would lead to it not being used and would confuse users who wouldn't see the expected results. Add a check for the same during publishing and agent.