[BUGFIX] BackendConfigurationManager retrieves wrong pageId

If given an empty array, the function getPageIdFromRecord casts
TRUE to (int) 1 resulting in configuration not loading in
BE/CLI context.

Fixes #705
Merge pull request #706 from Akii/development

[BUGFIX] BackendConfigurationManager retrieves wrong pageId