Fix "Empty string passed to getElementById()" issue.