AIM: do not fail if allocating zero bytes returns NULL
Merge into master from pull request #13:
AIM: do not fail if allocating zero bytes returns NULL (https://github.com/floodlight/infra/pull/13)