A disabled man who used his crutch to attack police officers dealing with racist violence on the streets of Belfast has avoided being sent to prison.