(Bug 5152) Don't return a string for an int value

Instead, warn (and provide helpful hint to fix it) and then return 0.