nanosleep - don't write to rmtp if it's NULL
Merge pull request #1778 from ToadKing/nanosleep-fix

nanosleep - don't write to rmtp if it's NULL