fixing js error when lightbox error modal should show
Merge branch 'lightbox-error-modal' into dev