How to get a node object/id from theme functions when the form is ajaxified?
You can try to store the node->nid in a hidden field on page load. When your ajax call is executed, you can load the node from the hidden field instead of the menu_get_object.