Added rescue for NameError when checking for formtastic and simple_form dependencies.