Update main.js

line 157, not allowing null values to be used as tags