BUG:2137142 - [NodeJS] Failed to upload File if path is omitted.

This bug is because of a regression introduced by path normalize. Null check is missed.