After you file

TurboTax has no way of knowing that you mailed in a return with no SSN and that the dependent was denied.  

Mail your amendment with the SSN and a letter explaining what happened and let the IRS sort it out.