Bounds checking for empty messages