Does your get_permalink(); return Empty?
Possible Solution:
Imagine your workspace. You have your website open to view your changes right? Okay, so when you write code it doesn't matter how many times your refresh the browser... nothing will show until you save the code.
Adding a page through your wordpress dashboard is the same thing with respect to your WAMP/XAMP/whatever server. I had this issue and I refreshed(right click>"Refresh">wait.) my WAMP server and the problem went away.
I can't guarantee this will work but its super simply to check off your troubleshooting list. Hope this works for ya!