Update couchpotato.js

Add check to make sure object exist, if not it will throw JS error
Merge pull request #145 from raymatos/patch-1

Update couchpotato.js