Prevent warnings from being throw on ajax request