Fix error being thrown when no dataset has been provided