Update admin.py

handle AttributeError exception properly while using custom media class without js tuple.