libathemecore: when binding/unbinding commands indirectly, sptr may be legitimately NULL. (closes #304)