Fix trim_var function in RabbitMQ script

stupid mistake: do echo instead of return
in trim_var() function

Change-Id: I58f5250b92c0b09707d425c5db0a1e98aee22e53
Closes-bug: #1339080
Merge "Fix trim_var function in RabbitMQ script"