HPCC-12486 Optimize binding module functions

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Is this not only true depending on where it is called from, i.e. someone else could use this incorrectly in the future and pass in a null expression?