[FIX] null value bug

fixed a bug when new block is added and $last_shares is null