By adding this line in the function _evenBlacklist, what I did was that now this function will return the value of $has_onload = 0  for sql.js file instead of 1 which was not required for sql.js because there is no event to be fired up for it. 
Same sql.js file had been included in db_sql.php page which was also causing the same problem over there....