[sr-dev] [kamailio/kamailio] siptrace: check if trace_to_database is set before checking the db co… (#2047)