Prevent plugin from serving files from root if real path is not defined.

When the value of the real path is a non-existing path, the serve controller
would default to the root of the filesystem. Add detection and error message
for this scenario.