EDOC-1608: fix getObject method to retrieve correct mime-type