Learning Quadrupedal Locomotion with Impaired Joints Using Random Joint Masking