get_media_path: add fallback to allow using Galleries with standalone placeholder fields outside of Pages.

Code from CMSPluginbase
Avoid hardcoding default template and instead use first autodetected.
Merge pull request #19 from dgaus/master

get_media_path: add fallback to allow using Galleries with standalone placeholder