Remove spinner when handling an ajax error with a modal