Unitialized memory returned with mid() in rare occurances (non-crash)