Fixed incorrect type for max_length.
Fixed #21543 -- Removed base_dir attribute in StaticFilesHandler.

This code seems to be an artifact of AdminMediaHandler removed in [5c53e30607].