Add pathauto module checks and check of  is empty.