Added ability to send an empty contexts array (closes #296)