NBC: A loophole got New York City man a free hotel stay for five years until he claimed to own the building