Check for a null DataSource in the constructor