added if clause to make sure there is a recording to store
Merge pull request #258 from LearnToBeFoundation/neeraj

added if clause to make sure there is a recording to store