Fixed deadline issues.
Set earlybird as absolute value
Check that deadline is not undefined.
Merge pull request #825 from Nevtep/crowdsale-fixes

Crowdsale fixes