Fix deprecation issue with AdminMediaHaHandler