The stub resolution of 1-planar graphs