Fix issue #40

Add checking if a date sent to NSCalendar's method components:fromDate: is not nil.
Merge pull request #41 from fastred/issue_40

Fix issue #40