Had the same experience staying at a AirBnB in Vancouver. In that case it was a unit where (unbeknownst to me) the condo board had banned AirBnB, so we were instructed after booking to say we were 'visiting friends'.
In China you are legally required to go register your location with the police though. It's a bit different than lying to the building doorman or whatever.
I just finished staying in an airbnb for a month in China and didn't have to go to the cop shop. I've now just rented an apartment and did the registration no issues, they didn't highlight any gaps on my travel record so I assume it was all above board.
According to the law, you have to register with the local authorities. Technically a law was broken, unlikely it will be used against you unless they make it a prerogative.