add handler for zero-length numeric vectors, remove unnecessary call to [obj].size()
add handler for zero-length numeric vectors, remove unnecessary call to [obj].size()

wikimedia-research/WMUtils,wikimedia-research/WMUtils