Check for len 0 in first_day and last_day

Add len0 check to first_day and last_day
Merge branch 'master' of https://github.com/simor/Heliport