Set fillStyle and strokeStyle into context only if they are not 'undefined'