Set sample from context when absent in workspace

Fix #385.

Signed-off-by: Don Naegely <naegelyd@gmail.com>
The first condition isn't necessary since the second is strict equality check.