SMF Error's during clean SQLite3 install (#1740)

Added check for if the $handle is a object