Used available_attrs in method_decorator

Fix https://code.djangoproject.com/ticket/21513 by only copying attributes that exist.