Fix problem when curl returns -1 for lastmodified header

See dicussion here: http://sourceforge.net/p/davical/mailman/message/31891908/ Thanks to Damien MASCRÉ for the fix.

The fix solved a problem for me when external calendars would never be fetched.