fixing type error within couchpotato requesthandler