fix Empty string passed to getElementById().