DNN-5526 Fix login popup

Fixed issue where login popup stopped working if search skin object
removed from page.  This resulted in dnn.js not getting added to the
page properly.