swallow invalid layername errors more graciously