Update datatype.js

I have an error with IE10 loading the app. Nothing appears because of the cookies. The cookie cart_count is undefined so the strip method returns an error (lstrip).
The solution to this error was to check if the string is empty before trying to strip it.