Fixed bug when Composer called scriptHandler that would cause it to fail