Prevent exception on empty script