No application for a license required by this article or for renewal shall be denied by reason of closeness to a church, school or residence or inadequate lighting as required under the provisions of this article if a license was granted prior to June 30, 1987, in reliance on the prior county malt beverage and wine license ordinance, and the premises have remained licensed without interruption. Further, any premises licensed under this article shall not be denied for licensing by reason that a house, school or church has been erected within the prohibited distance after the licensed establishment was opened, and it continued in operation without interruption.