rtpengine: fix issues reported by Coverity