Valencia waited until the second half to secure the win against fourth division club SD Ejea in the Copa del Rey.