Wrong parameter passed to basename in remapScript of CClientScript

When the registered script file with non-empty htmlOptions,then will cause this error.