Added a check if invalid or error occured during ajax query

Adding a check, when deleting user if some error occured then user is not notified and spinner is not removed.
Have to take care of Internationalization string (error_occured and not_acceptable) as that will be alerted if some error or invalid request is made.


Signed-off-by: Arpit Goyal <agmps17@gmail.com>