It's not really undefined :|, its 1/infinite which should be zero but technically you can't reach it. I dunno.
1/(cscx) - Wolfram|Alpha
1/cosecx gives sinx without any opened dots so ?_?...
This is where one needs some strict technical precision:
cosec x = 1/sin x ONLY wherever sin x is non-zero
So technically one should write
DEFINITION:
cosec x = 1/sin x (with restriction sin x =/= 0)
By rearrangement
sin x = 1/cosec x (with restriction sin x =/= 0)
The restriction doesn't go away
What I'm basically trying to say is that sin x = 1/cosec x only if sin x is non-zero because of the restriction applied on cosec x which isn't automatically removed just for the sake of it.
You can only do this:
1/cosec x = 1/(1/sin x) = sin x
when sin x is non-zero due to the denominator in the definition of cosec x