remove usage of list.is_none(), which is not supported in older boost versions

git-svn-id: svn://svn.code.sf.net/p/rdkit/code/trunk@2390 a5045d30-4826-4484-9c7f-6e55a06ddc77