Initially reported by Vikas Gupta.
When we do not pass an asset name (=empty), there is a charAt method calls that throws a StringIndexOutOfBoundsException. This results in the stack trace being displayed in the Oops page (=angry Jenkins).