Add invalid callback for uninitialized functions (closes #4)