Bugfix

Fixed the while condition to stop the loop once a valid end structure
has been found. On valid PNGs, this caused the EOF flag to be set. On
valid, oversized PNGs this could result in Validate() returning False.