Fixed script error with default blank site in edit page.