Corrected onerror behaviour for loading scripts