Change if test structure for content_id

At maintainer request, using if content_id is not None instead of if not content_id is None