Singularity formation as a wetting mechanism in a dispersionless water wave model