bugfix: es_str2num mishandling empty strings
bugfix: es_str2num mishandling empty strings

If es_str2num() receives an empty string, misadressing happens.
Under extreme conditions, this theoretically can lead to a segfault.

closes https://github.com/rsyslog/libestr/issues/10

rsyslog/libestr,rsyslog/libestr