It’s hard work printing nothing
There’s an argument to be made that silly error messages are better than crashing browsersThere's an argument, but it's a really lousy one.  If you're passing NULL as a string to printf, your code is broken.  A crash which results in someone tracking down and fixing the bug is far better than quietly doing something which is 100% guaranteed to be wrong.