Added additional if statement check
Fixed paper projects having multiple layers

Every importJSON function called added another layer to the server's
paper project.