fix a bug with variable 'sources' getting an undefined value, if data.clock isn't defined.
emit an error in case data or data.clock aren't defined
5.6.8