Fixes for null selectors and ajax postData