The court, motu proprio or on motion of the minor, shall declare said minor not liable for the offense or offense alleged in the complaint, if, after the evidence on either side is closed, it would be deemed insufficient to uphold the perpetration of said offense.