Everyone can handle that as they wish. In Germany, there is freedom of contract within certain limits. If the landlord rents out the apartment without floors and the tenant agrees, i.e., signs, then that is how it is.
Of course, it's pretty stupid if you don't know what kind of subfloor is actually there. But rental apartments are scarce in many places, you take what you get... usually under the conditions the landlord envisions.