Make second argument optional

Equivalent to addVendorScript und addScript from OC_Util. Fixes a PHP error in master.

@MorrisJobke Please ensure that this is the right way to solve this.