Fix undefined variables throwing exception with length filter
Merge pull request #248 from garygreen/fix/length-undefined

Fix undefined variables throwing exception with length filter