Every element of auto-mode-list are not dotted pair. For example .gpg, .gz etc. assoc-default returns list for such buffer names and funcall raises error because it is not function.