Fix setting model data without a graphics context

Closes #22.