Bug fix - Check if model params exists to avoid problem in new and edit action