Fix for Undefined index: custom_position

Added an isset check for a possible undefined index.