The removal of this function was already announced for the 2019.04 release. So it is safe to remove it.
Size 0 snips are legal packet snips (empty payload e.g.) so it doesn't make sense to issue an error in the write-protection in that case. API documentation doesn't mention it either and the tests still pass with the check removed.
The main motivation for this is to valgrind the network stack.