Check class of string being copied to clipboard

Prevents instances of the string being [NSNull null]
Merge pull request #1 from billburgess/copycrash

Check class of string being copied to clipboard