Fixed issue #12, 'Error executing specs with nill beforeEach/afterEach'

Closed #12 by checking beforeEach/afterEach for nil before using as parameter in doMessage.