Setting hidden class for bootstrap alert when modal is  opened.