To replay this error:
1) Create a new Search
2) Go to List tab
3) Choose a list template.
Reaction: first time you have an error like "Oops. Reload this page" - ajax returns error 500 (count of NULL). After reload page works normally. To remove this behavior I added this checking
To replay this error: 1) Create a new Search 2) Go to List tab 3) Choose a list template. Reaction: first time you have an error like "Oops. Reload this page" - ajax returns error 500 (count of NULL). After reload page works normally. To remove this behavior I added this checking