Added null check to getStory