DEV: Minor code clean up in assets.rake. (PR #13245)

GitHub

Test failure is unrelated.