Update fancy-label.js

added exception handling