Added code for throwing an exception if the twitter keys are not set