Attempt to guess the error code on instances of PageElement only