Fixed bug generating target context when task options is undefined.

Feature for merging task context into target context (#13) breaks the entire task if task options is undefined.
This simple change fixes that.