#i124131# use smart pointer's bool operator instead of comparing its content against NULL

this makes the code more typesafe and avoids the -Wnull-conversion warnings
seen with boost>=1.55 smart pointers in C+11 enabled build environments