Portable fire extinguisher accidentally discharged in excavator cab. While attempting to step down from the machine the tracks were not aligned causing the excavator operator to hang from the grab handle of the cab. This strained left bicep tendon causing injury.