Fix aligned realloc when ptr is null