Perform proper heap bounds checking on skinny messages (bug #1726)